package org.aplikator.client.data;

import java.io.Serializable;

@SuppressWarnings("serial")
public interface ListItem<T> extends Serializable {

    public T getValue() ;

    public String getName() ;

    public static class Default<T> implements ListItem<T>{
    private T value;
    private String name;

    @SuppressWarnings("unused")
    private Default() {
    }

    public Default(T value, String name) {
        super();
        this.value = value;
        this.name = name;
    }

    public T getValue() {
        return value;
    }

    public String getName() {
        return name;
    }
    }

}
